package Mediator;

import Mediator.base.Circle;
import Mediator.base.Rectangle;
import Mediator.base.Shape;
import Mediator.base.Square;

//所谓外观类 调停者模式
public class ShapeMaker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker(){
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
